package com.gitee.gateway.demo;

import io.vertx.core.Future;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;

public class DemoServiceImpl implements DemoService {

    private final Vertx vertx;

    DemoServiceImpl(Vertx vertx, JsonObject config) {
        this.vertx = vertx;
    }

    @Override
    public Future<String> sayHello(String name) {
        return Future.succeededFuture(STR."Hello \{name} (Message from Service)");
    }

    @Override
    public Future<Void> close() {
        return Future.succeededFuture();
    }
}
